package com.seabook.store.purchase.service;

import java.util.List;

import com.seabook.store.auth.domain.User;
import com.seabook.store.purchase.domain.Order;
import com.seabook.store.purchase.domain.OrderUpdate;
import com.seabook.store.purchase.domain.Order.Status;

public interface OrderService {

    Order insertOrder(Order order);
    
    List<Order> getOrderByUserId(int userId);

    Order getOrderByOrderId(int orderId);

    void updateOrderStatus(int orderId, Status paid);

    List<Order> getOrderByStatus(Status paid);

    void updateOrderStatus(Order order, User user);

    void updateOrder(OrderUpdate orderUpdate);

}
